<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
	<title></title>
	<link rel="stylesheet" href="Public/Admin/Css/public.css" />
	<script type="text/javascript" src="Public/Admin/Js/jquery-1.7.2.min.js"></script>
	<!--<script type="text/javascript" src="Public/Admin/Js/public.js"></script>-->	
	<script type="text/javascript">
		$(function(){
			$('.del').click(function(){
				var asid=$(this).attr('asid');
				var uid=$(this).attr('uid');
				if(confirm('确定删除吗？')){
					location.href="{{'Ask/delete'|U}}&asid="+asid+"&uid="+uid;
				}
			})
		})
	</script>
</head>

<body>
	<table class="table">
		<tr>
			<td class="th" colspan="20">问题列表</td>
		</tr>
		<tr class="tableTop">
			<td class="tdLittle1">ID</td>
			<td>问题内容</td>
			<td>提问时间</td>
			<td>回答人数</td>
			<td>悬赏金币</td>
			<td>操作</td>
		</tr>
		{{section loop=$askData name=a}}
			<tr>
				<td>{{$askData[a].asid}}</td>
				<td>{{$askData[a].content}}</td>
				<td>{{$askData[a].time|date_format:"%Y-%m-%d"}}</td>
				<td>{{$askData[a].answer}}</td>
				<td>{{$askData[a].reward}}</td>
				<td>
					<a href="javascript:;" class="del" asid="{{$askData[a].asid}}" key="{{$askData[a].uid}}">删除</a>
				</td>
			</tr>
		{{/section}}
	</table>
	<div class="page">
		共{{$smarty.section.a.total}}条 &nbsp
		<a href="">1</a>
	</div>

</body>
</html>